*** Settings ***
Documentation       通过ipmi接口导出SSL CSR文件"/tmp/server.csr"
Resource            ../../test_function/ipmi/ipmi.robot
Library             OperatingSystem
Library             BuiltIn

Test Tags           Ipmi_Ntp_Status

*** Variables ***
${input}                    raw 0x30 0x93 0xdb 0x07 0x00 0x57 0x00 0x01 0x06 0x00 0x00 0x0f 0x2f 0x74 0x6d 0x70 0x2f 0x73 0x65 0x72 0x76 0x65 0x72 0x2e 0x63 0x73 0x72
${expected_rc}              ${0}
${expected_output}          db 07 00


*** Test Cases ***
Set IPMI SSL CSR File
    [Documentation]    带认证的IPMI的导出SSL CSR文件
    [Tags]  Set_Ssl_Csr_File_IPMI
    ${rc}    ${output}=  Run External Ipmi Command    ${input}
    Log    Command Output: ${output}
    Should Be Equal    ${rc}    ${expected_rc}    msg=${output}
    Should Contain    ${output}    ${expected_output}


